(global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/item/itempersonnel_list" ], {
    "252a": function(e, t, n) {
        "use strict";
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            n("4e1e"), t(n("66fd")), e(t(n("5c7d")).default);
        }).call(this, n("543d").createPage);
    },
    "4b6f": function(e, t, n) {},
    "51fd": function(e, t, n) {
        "use strict";
        n.d(t, "b", function() {
            return o;
        }), n.d(t, "c", function() {
            return i;
        }), n.d(t, "a", function() {
            return a;
        });
        var a = {
            gracePage: function() {
                return n.e("graceUI/components/gracePage").then(n.bind(null, "1915"));
            },
            graceSearch: function() {
                return n.e("graceUI/components/graceSearch").then(n.bind(null, "d720"));
            },
            graceFullLoading: function() {
                return n.e("graceUI/components/graceFullLoading").then(n.bind(null, "7669"));
            },
            graceSelectMenu: function() {
                return n.e("graceUI/components/graceSelectMenu").then(n.bind(null, "2bda"));
            },
            graceEmptyNew: function() {
                return n.e("graceUI/components/graceEmptyNew").then(n.bind(null, "fb2f"));
            },
            divider: function() {
                return n.e("components/divider/divider").then(n.bind(null, "bdb7"));
            },
            graceLoading: function() {
                return n.e("graceUI/components/graceLoading").then(n.bind(null, "93a5"));
            },
            xmgTabBar: function() {
                return n.e("components/xmgTabBar/xmgTabBar").then(n.bind(null, "cfe5"));
            }
        }, o = function() {
            var e = this, t = (e.$createElement, e._self._c, Object.keys(e.tabBar));
            e.$mp.data = Object.assign({}, {
                $root: {
                    g0: t
                }
            });
        }, i = [];
    },
    "5c7d": function(e, t, n) {
        "use strict";
        n.r(t);
        var a = n("51fd"), o = n("c33d");
        for (var i in o) "default" !== i && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(i);
        n("e66b");
        var c = n("f0c5"), r = Object(c.a)(o.default, a.b, a.c, !1, null, null, null, !1, a.a, void 0);
        t.default = r.exports;
    },
    "640d": function(e, t, n) {
        "use strict";
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var a = n("b00d"), o = n("256d"), i = {
                data: function() {
                    return {
                        graceFullLoading: !0,
                        personnels: [],
                        percate: [],
                        orderItemList: [],
                        emptyMsg: "",
                        attach: "",
                        loadingType: 0,
                        tempItem: [],
                        page: 1,
                        pageMore: 0,
                        tempPageMore: 0,
                        teckname: "技师",
                        bgColor: "",
                        textColor: "",
                        showHead: 1,
                        headimg: "",
                        perStar: 0,
                        showteck: 2,
                        headerHeight: 64,
                        selectVal1: 0,
                        show1: !1,
                        menu1Color: "#FF0000",
                        selectMenu1: [],
                        selectVal2: 0,
                        show2: !1,
                        menu2Color: "#FF0000",
                        selectMenu2: [ "离我最近", "系统排序" ],
                        cateIndex: 0,
                        orderIndex: 0,
                        lng: 0,
                        lat: 0,
                        defaultKeys: "",
                        showBack: !1,
                        tabBar: {},
                        currentCur: 0,
                        iskefu: 2,
                        logo: "",
                        appid: ""
                    };
                },
                onLoad: function(t) {
                    var n = this;
                    this.appid = a.d;
                    var o = getCurrentPages();
                    this.showBack = o.length > 1, setTimeout(function() {
                        n.headerHeight = n.$refs.gracePage.getHeaderHeight();
                    }, 300);
                    var i = e.getStorageSync("longitude"), c = e.getStorageSync("latitude");
                    i && c ? (this.lng = i, this.lat = c, this.getMenu()) : this.uploadLBS();
                },
                methods: {
                    newImage: function(e) {
                        this.personnels[e.currentTarget.dataset.imgid].headimg = this.logo;
                    },
                    clearSearch: function() {
                        this.defaultKeys = "", this.loadData(1);
                    },
                    confirmSearch: function(e) {
                        this.defaultKeys = e, this.loadData(1);
                    },
                    uploadLBS: function() {
                        var t = this;
                        e.getSetting({
                            success: function(n) {
                                n.authSetting["scope.userLocation"] ? 0 == n.authSetting["scope.userLocation"] ? e.showModal({
                                    title: "提示",
                                    content: "点击右上角(...)设置打开位置权限,然后重新进入此页面",
                                    showCancel: !1,
                                    success: function(t) {
                                        t.confirm ? e.reLaunch({
                                            url: "../index/index"
                                        }) : t.cancel && console.log("用户点击取消");
                                    }
                                }) : t.getaddress() : wx.authorize({
                                    scope: "scope.userLocation",
                                    success: function() {
                                        t.getaddress();
                                    },
                                    fail: function() {
                                        e.showModal({
                                            title: "提示",
                                            content: "点击右上角(...)设置打开位置权限,然后重新进入此页面",
                                            showCancel: !1,
                                            success: function(t) {
                                                t.confirm ? e.reLaunch({
                                                    url: "../index/index"
                                                }) : t.cancel && console.log("用户点击取消");
                                            }
                                        });
                                    }
                                });
                            },
                            fail: function(e) {}
                        });
                    },
                    getaddress: function() {
                        var t = this;
                        e.getLocation({
                            type: "gcj02",
                            success: function(e) {
                                t.lng = e.longitude, t.lat = e.latitude, t.getMenu();
                            },
                            fail: function(t) {
                                e.showModal({
                                    title: "提示",
                                    content: "请开启手机位置定位(GPS),然后重新进入此页面",
                                    showCancel: !1,
                                    success: function(t) {
                                        t.confirm ? e.reLaunch({
                                            url: "../index/index"
                                        }) : t.cancel && console.log("用户点击取消");
                                    }
                                });
                            }
                        });
                    },
                    showMenu1: function() {
                        this.show1 = !0;
                    },
                    closeMenu1: function() {
                        this.show1 = !1;
                    },
                    select1: function(e) {
                        this.cateIndex = e, this.loadData(1);
                    },
                    showMenu2: function() {
                        this.show2 = !0;
                    },
                    closeMenu2: function() {
                        this.show2 = !1;
                    },
                    select2: function(e) {
                        this.orderIndex = e, this.loadData(1);
                    },
                    toPersonnelInfo: function(t) {
                        if (1 == this.showteck) {
                            var n = t.currentTarget.dataset.perid;
                            e.navigateTo({
                                url: "../item/itempersonnel?perid=" + n
                            });
                        }
                    },
                    getMenu: function() {
                        var t = this, n = this.$xSign.sign("v4personnellist");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4personnellist",
                            data: {
                                op: "getmenu",
                                xgsign: n
                            },
                            success: function(e) {
                                var n = JSON.parse(t.$Decrypt(e.data.data));
                                t.selectMenu1 = n.menu1, t.menu1Color = n.menu1color, t.menu2Color = n.menu2color, 
                                t.iskefu = n.iskefu, t.tabBar = n.tabbar, t.currentCur = n.currentCur, t.logo = n.logo, 
                                t.graceFullLoading = !1, t.loadData(1);
                            },
                            fail: function(t) {
                                e.showToast({
                                    title: t.data.message,
                                    icon: "none"
                                }), setTimeout(function() {
                                    e.reLaunch({
                                        url: "../index/index"
                                    });
                                }, 1200);
                            },
                            complete: function(e) {}
                        });
                    },
                    loadData: function(t) {
                        var n = this;
                        if (1 == t) this.personnels = [], this.loadingType = 3, this.page = 1, this.pageMore = 0; else if (1 == this.pageMore) return 1 == t ? this.graceFullLoading = !1 : e.hideLoading(), 
                        void (this.loadingType = 2);
                        1 == t ? this.graceFullLoading = !0 : e.showLoading({
                            title: "数据加载中"
                        });
                        var a = "";
                        "wx5a67ffb91ef175cb" != this.appid && "wxcaad2fca5f5aeba1" != this.appid || (a = "(status = 1 or status = 2)"), 
                        setTimeout(function() {
                            n.loadingType = 1;
                            var i = n.$xSign.sign("v4personnellist");
                            n.$xRequest.request({
                                url: "entry/wxapp/v4personnellist",
                                data: {
                                    page: n.page,
                                    op: "load",
                                    xgsign: i,
                                    cateindex: n.cateIndex,
                                    orderindex: n.orderIndex,
                                    lng: n.lng,
                                    lat: n.lat,
                                    searchkey: n.defaultKeys,
                                    tag: "tag",
                                    status: a
                                },
                                success: function(a) {
                                    var i = JSON.parse(n.$Decrypt(a.data.data));
                                    1 == t ? n.graceFullLoading = !1 : e.hideLoading(), n.attach = i.attach, n.teckname = i.teckname, 
                                    n.bgColor = i.bgColor, n.textColor = i.textColor, n.showHead = i.showhead, n.showteck = i.showteck, 
                                    0 == i.info ? i.personnels && (n.personnels = o.arrayConcat(n.personnels, i.personnels), 
                                    i.personnels.length < 10 ? (n.pageMore = 1, n.loadingType = 2) : (n.loadingType = 0, 
                                    n.page++), n.attach = i.attach, n.percate = i.percate) : (n.tempPageMore = i.info, 
                                    n.pageMore = n.tempPageMore, n.loadingType = 2);
                                },
                                complete: function(e) {}
                            });
                        }, 1e3);
                    }
                },
                computed: {
                    style: function() {
                        var t = this.$systemInfo.info(), n = t.windowHeight - t.iPhoneXBottomHeightPx - t.statusBarHeight - 44 - e.upx2px(190);
                        return "height:".concat(n, "px;");
                    }
                }
            };
            t.default = i;
        }).call(this, n("543d").default);
    },
    c33d: function(e, t, n) {
        "use strict";
        n.r(t);
        var a = n("640d"), o = n.n(a);
        for (var i in a) "default" !== i && function(e) {
            n.d(t, e, function() {
                return a[e];
            });
        }(i);
        t.default = o.a;
    },
    e66b: function(e, t, n) {
        "use strict";
        var a = n("4b6f");
        n.n(a).a;
    }
}, [ [ "252a", "common/runtime", "common/vendor" ] ] ]);